package com.hotel.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hotel.pojo.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author shkstart
 * @create 2021-06-22 14:26
 */
@Repository
public interface UserMapper extends BaseMapper<User>{
    //通过用户名称查询用户
    User findByUsername(String username);

    //模糊查询
    List<User> selectUserName(String username);

}
